home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Linux Cubed Series 8: LINUX Games
/
Linux Cubed Series 8 - LINUX Games.iso
/
games
/
video
/
fly8111-.000
/
fly8111-
/
fly8
/
DJGPP
/
config.bat
< prev
next >
Wrap
DOS Batch File
|
1995-09-08
|
3KB
|
112 lines
@echo off
:: config.bat
::
:: This is part of the flight simulator 'fly8'.
:: Author: Eyal Lebedinsky (eyal@ise.canberra.edu.au).
if "%1" == "dj" goto ok
echo use CONFIG XX where XX is one of: dj
goto end
:ok
if "%2" == "delete" goto delete
if not "%2" == "" goto error
::
:: Fly8 directories
::
copy djgpp\make%1 djgpp\makefile
copy djgpp\make%1.top makefile
copy djgpp\config%1.h djgpp\config.h
copy djgpp\make%1.sha shapes\makefile
copy djgpp\make%1.par parms\makefile
copy djgpp\make%1.uti utils\makefile
::
:: common files
::
copy common\bgr.c djgpp
copy common\bgr.h djgpp
copy common\build.bat djgpp
copy common\console.c djgpp
copy common\dosstick.c djgpp
copy common\grstat.c djgpp
copy common\misc.c djgpp
copy common\pc8254.h djgpp
copy common\plsound.c djgpp
copy common\plsound.h djgpp
copy common\plspeak.c djgpp
copy common\stick.c djgpp
copy common\stick.h djgpp
copy common\timer.c djgpp
goto end
:delete
echo comparing files for "%1" >config.log
::
:: Fly8 directories
::
fc djgpp\make%1 djgpp\makefile >>config.log
fc djgpp\make%1.top makefile >>config.log
fc djgpp\config%1.h djgpp\config.h >>config.log
fc djgpp\make%1.sha shapes\makefile >>config.log
fc djgpp\make%1.par parms\makefile >>config.log
fc djgpp\make%1.uti utils\makefile >>config.log
::
:: common files
::
fc common\bgr.c djgpp\*.* >>config.log
fc common\bgr.h djgpp\*.* >>config.log
fc msdos\build.bat djgpp\*.* >>config.log
fc common\console.c djgpp\*.* >>config.log
fc common\dosstick.c djgpp\*.* >>config.log
fc common\grstat.c djgpp\*.* >>config.log
fc common\misc.c djgpp\*.* >>config.log
fc common\pc8254.h djgpp\*.* >>config.log
fc common\plsound.c djgpp\*.* >>config.log
fc common\plsound.h djgpp\*.* >>config.log
fc common\plspeak.c djgpp\*.* >>config.log
fc common\stick.c djgpp\*.* >>config.log
fc common\stick.h djgpp\*.* >>config.log
fc common\timer.c djgpp\*.* >>config.log
type config.log | more
del config.log
echo hit Ctrl-C to NOT delete files!
pause
pause
pause
::
:: Fly8 directories
::
del djgpp\makefile
del makefile
del djgpp\config.h
del shapes\makefile
del parms\makefile
del utils\makefile
::
:: common files
::
del djgpp\bgr.h
del djgpp\bgr.c
del djgpp\build.bat
del djgpp\console.c
del djgpp\dosstick.c
del djgpp\grstat.c
del djgpp\misc.c
del djgpp\pc8254.h
del djgpp\plsound.c
del djgpp\plsound.h
del djgpp\plspeak.c
del djgpp\stick.c
del djgpp\stick.h
del djgpp\timer.c
goto end
:error
echo Second operand can only be "delete".
goto end
:end